<ion-view view-title="资讯中心">

    <div class="tabs-striped tabs-top">
        <div class="tabs">
            <a ng-class="{'tab-item':true,'active': nodeType == 'news' }" href="#/tabs/news">农业动态</a>
            <a ng-class="{'tab-item':true,'active': nodeType == 'market' }" href="#/tabs/market">农资市场</a>
            <a ng-class="{'tab-item':true,'active': nodeType == 'knowledge' }" href="#/tabs/knowledge">农技知识</a>
            <a ng-class="{'tab-item':true,'active': nodeType == 'case' }" href="#/tabs/case">产品故事</a>
        </div>
    </div>
    <!--头部和内容-->
    <ion-content class="padding has-tabs-top">
        <ion-refresher pulling-text="下拉刷新" pulling-icon="ion-loading-c" refreshing-text="刷新成功"
                       refreshing-icon="ion-loading-c" on-refresh="loadList(true)">
        </ion-refresher>
        <ion-list class="list card">
            <a ng-repeat="item in list | orderObjectBy:'time':'nid':'true'"
               href="#/article/{{listName}}/{{item.nid}}" class="item item-thumbnail-left">
                <img ng-src="{{ item.img }}">

                <h2>{{ item.title }}</h2>

                <p>{{ item.summary }}</p>

                <!--<p id="time">{{ item.time }}</p>-->
                
                <span id="time-1">{{item.time}}</span>

            </a>

            <div ng-if="listEnd" class="text-center">
                已显示全部内容
            </div>
        </ion-list>
        <ion-infinite-scroll ng-if="!listEnd" on-infinite="loadList(false)" distance="1%"></ion-infinite-scroll>
    </ion-content>
</ion-view>
